package com.moonlit.myspring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAutowire {
    public static void main(String[] args) {
        ApplicationContext context =new ClassPathXmlApplicationContext("sping-idol.xml");
        Hero hero = (Hero) context.getBean("guanyu");
        hero.perform();
    }
}
